<?php
//require_once 'Zend/View.php';
Zend_Loader::LoadClass('Zend_View');
class IndexController extends Zend_Controller_Action
{
    public function init()
    {
        Zend_Loader::loadClass('LocationInfo');
    }
    public function indexAction()
    {
        $location_tab = new LocationInfo();
        $this->view->baseUrl = $this->getRequest()->getPathInfo();
        $this->view->locations = $location_tab->fetchAll();
        $this->view->assign('title', 'Hello World!'); #1
    }
    public function loginAction()
    {
        $this->view->assign('title', 'Login '); #1
    }
    public function locationAction()
    {
        $location_tab = new LocationInfo();
        $this->view->locations = $location_tab->fetchAll();
        $this->view->baseUrl = $this->getRequest()->getBasePath();
        $this->view->assign('title', 'Hello World!'); #1
    }
}
?>